home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / datacomm / 2414 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: sourcery.han.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.datacomm
  3. References: <353.6655T1397T113@walrus.megabaud.fi>
  4. From: "Olaf Barthel" <olsen@sourcery.han.de>
  5. Date: Thu, 04 Apr 1996 22:58:36 +0100
  6. X-NewsReader: IntuiNews 1.3a (7.9.95)
  7. Subject: Re: Term script - trap lists
  8. Message-ID: <13213882@sourcery.han.de>
  9.  
  10. In Article <353.6655T1397T113@walrus.megabaud.fi>, Jussi Ruuskanen <simon@walrus.megabaud.fi> wrote:
  11. > How do I use trap lists in term scripts? The examples with extras
  12. > archive show just normal waiting process, but often bbs sends
  13. > "more" or "you have mail" or something else that could be easily
  14. > processed like WHEN command in Terminus. I'd appreciate a small
  15. > arexx example.
  16.  
  17.    Well, I never wrote a complete example program for it, but the functionality
  18. of the trap list has no exact counterpart in the ARexx interface. While the
  19. trap list triggers commands automatically when the scanner hits the keywords
  20. associated with them, you will have to do it `manually' with ARexx. What you
  21. do is put the keywords into the WAIT list and repeatedly call the ARexx
  22. "WAIT" command. If it finds one of the keywords from the list in the input data
  23. stream, the command will return the keyword it found as the result. Based upon
  24. this information your ARexx script has to decide what to do about it.
  25.  
  26. --
  27. Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
  28.  Net: olsen@sourcery.han.de
  29.